import java.util.ArrayList;
import java.util.List;


public class Arraylist {
public static void main(String[] args) {
		List<String> listOfColors=new ArrayList<String>();
		String[] color={"red","blue","green","violet","indigo","yellow","blue"};
		for(int i=0;i<color.length;i++) {
			listOfColors.add(color[i]);
		}
		System.out.println(listOfColors.size());
		System.out.println(listOfColors.remove("yellow"));
		System.out.println(listOfColors.contains("yellow"));
		System.out.println(listOfColors.size());
		
}
}
